<div style="width:400px; height:320px; padding:5px;">
    <input type="hidden" name="_frameAction" id="_frameAction" value="">
    <p>
        <center>
            <label>
                <input type="radio" name="type" value="directory" onclick="submitFrame()" {if $type=="directory"}checked{/if}>文件夹
            </label>
            <label>
                <input type="radio" name="type" value="image" onclick="submitFrame()" {if $type=="image"}checked{/if}>图片
            </label>
        </center>
    </p>
    <p>
        <ul>
        	{if $type=='directory'}
            <li>
                名称：<input type="text" name="name" />
            </li>
			{elseif $type=='image'}
			<li>
              <form action="?a=item&m=upload&type=image" method="post" enctype="multipart/form-data"><input type="file" name="file" onchange="uploadFram(this)"></form>
            </li>
			{/if}
			{if in_array($type, array('directory', 'image'))}
            <li>
                权限：
                <label>
                    <input type="checkbox" name="privilege" value="view">查看
                </label>
                <label>
                    <input type="checkbox" name="privilege" value="edit">修改
                </label>
                <label>
                    <input type="checkbox" name="privilege" value="delete">删除
                </label>
                <label>
                    <input type="checkbox" name="privilege" value="copy">复制
                </label>
                <label>
                    <input type="checkbox" name="privilege" value="link">链接
                </label>
            </li>
            <li>
                <center><input type="button" name="sub" value="确认" onclick="submitFrame()"></center>
            </li>
			{/if}
        </ul>
    </p>
</div>